package com.engine.cn.controller;

import com.engine.cn.service.InventoryService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/inventory")
@Tag(description = "inventory", name = "库存")
public class InventoryController {
    @Resource
    private InventoryService inventoryService;

    @Operation(summary = "卖货", description = "卖货")
    @PutMapping("/sale")
    public String sale() {
        return inventoryService.sale();
    }
}
